package com.bosssoft.trainee.service;

import com.bosssoft.trainee.common.Result;
import com.bosssoft.trainee.entity.VO.InfoUserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @author liuqiang
 * @date 2022/7/13 17:11
 */
@Component
@FeignClient(value = "system-rbac")
public interface UserInfoService {

    @GetMapping("/userInfo/find/{id}")
    Result<Object> findUserInfo(@PathVariable("id") Integer id);

    @GetMapping("/userRole/register/roleList")
    Result<Object> getRegisterRole();

    @PostMapping("/userInfo/register")
    Result<Object> insertUser(@Valid @RequestBody InfoUserVO infoUserVo);
}
